package org.jeecg.modules.operations.assistant.crm.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 工单信息
 * @Author: jeecg-boot
 * @Date:   2024-01-07
 * @Version: V1.0
 */
@ApiModel(value="work_order对象", description="工单信息")
@Data
@TableName("crm_work_order")
public class CrmWorkOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**提交时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提交时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
	/**工单类型*/
	@Excel(name = "工单类型", width = 15, dicCode = "workOrderType")
    @Dict(dicCode = "workOrderType")
    @ApiModelProperty(value = "工单类型")
    private String workOrderType;
	/**工单号*/
	@Excel(name = "工单号", width = 15)
    @ApiModelProperty(value = "工单号")
    private String workOrderNumber;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String customerName;
    /**客户ID*/
//    @Excel(name = "客户名称", width = 15)
//    @ApiModelProperty(value = "客户名称")
    private transient String customerId;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private String contacts;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String telephone;
	/**上门地址*/
	@Excel(name = "上门地址", width = 15)
    @ApiModelProperty(value = "上门地址")
    private String homeAddress;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
    private String address;
	/**车牌号*/
	@Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
    private String licensePlate;
	/**工单描述*/
	@Excel(name = "工单描述", width = 15)
    @ApiModelProperty(value = "工单描述")
    private String description;
	/**预约时间*/
	@Excel(name = "预约时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约时间")
    private Date appointmentTime;
    /**预约结果*/
    @Excel(name = "预约结果", width = 15)
    @ApiModelProperty(value = "预约结果")
    private String appointmentResults;
	/**服务时间*/
	@Excel(name = "服务时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "服务时间")
    private Date serviceTime;
	/**工单状态*/
	@Excel(name = "工单状态", width = 15, dicCode = "workOrderStatus")
    @Dict(dicCode = "workOrderStatus")
    @ApiModelProperty(value = "工单状态")
    private Integer workOrderStatus;
	/**结算状态*/
	@Excel(name = "结算状态", width = 15, dicCode = "settlementstatus")
    @Dict(dicCode = "settlementstatus")
    @ApiModelProperty(value = "结算状态")
    private Integer settlementStatus;
	/**是否免费*/
	@Excel(name = "是否免费", width = 15, dicCode = "free")
    @Dict(dicCode = "free")
    @ApiModelProperty(value = "是否免费")
    private Integer free;
	/**服务类型*/
	@Excel(name = "服务类型", width = 15, dicCode = "serviceType")
    @Dict(dicCode = "serviceType")
    @ApiModelProperty(value = "服务类型")
    private Integer serviceType;
	/**工单来源*/
	@Excel(name = "工单来源", width = 15, dicCode = "workOrderSource")
    @Dict(dicCode = "workOrderSource")
    @ApiModelProperty(value = "工单来源")
    private Integer workOrderSource;
	/**回执时间*/
	@Excel(name = "回执时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "回执时间")
    private Date receiptTime;
	/**完成时间*/
	@Excel(name = "完成时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "完成时间")
    private Date finishTime;
	/**优先级*/
	@Excel(name = "优先级", width = 15, dicCode = "workOrderPriority")
    @Dict(dicCode = "workOrderPriority")
    @ApiModelProperty(value = "优先级")
    private Integer priority;
	/**服务人员*/
	@Excel(name = "服务人员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "服务人员")
    private String serviceStaff;
	/**部门名称*/
	@Excel(name = "部门名称", width = 15)
    @ApiModelProperty(value = "部门名称")
    private String departmentName;
	/**协同人员*/
	@Excel(name = "协同人员", width = 15)
    @ApiModelProperty(value = "协同人员")
    private String collaborativePersonnel;
	/**工单金额*/
	@Excel(name = "工单金额", width = 15)
    @ApiModelProperty(value = "工单金额")
    private java.math.BigDecimal workOrderAmount;
	/**优惠金额*/
	@Excel(name = "优惠金额", width = 15)
    @ApiModelProperty(value = "优惠金额")
    private java.math.BigDecimal discountAmount;
	/**支付金额*/
	@Excel(name = "支付金额", width = 15)
    @ApiModelProperty(value = "支付金额")
    private java.math.BigDecimal paymentAmount;
	/**员工结算金额*/
	@Excel(name = "员工结算金额", width = 15)
    @ApiModelProperty(value = "员工结算金额")
    private java.math.BigDecimal settlementAmount;
	/**支付方式*/
	@Excel(name = "支付方式", width = 15)
    @ApiModelProperty(value = "支付方式")
    private Integer paymentMethod;
	/**结算日期*/
	@Excel(name = "结算日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结算日期")
    private Date settlementDate;
}
